//
//  LFProgressHUD.h
//  YC_GRice
//
//  Created by LiuFeng on 2018/8/9.
//  Copyright © 2018年 YeCai. All rights reserved.
//
#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, LFProgressHUDMode) {
    LFProgressHUDModeIndeterminate,
    LFProgressHUDModeCustomView,
    LFProgressHUDModeText
};


@interface LFProgressHUD : UIView

/**
 Safe distance from frame
 */
@property (nonatomic, assign) CGFloat margin;

@property (nonatomic, assign) LFProgressHUDMode mode;


@property (nonatomic, assign) BOOL removeFromSuperViewOnHide;
/**
 in addition to customizing the view, the content color in other cases
 */
@property (nonatomic, strong) UIColor *contentColor;

@property (nonatomic, strong) UIColor *color;

/**
 description of loading animation
 */
@property (nonatomic, strong, readonly) UILabel *textLabel;

/**
 loading's background view
 */
@property (nonatomic, strong, readonly) UIView *backgroundView;

/**
 Custom view, you can set what you want
 */
@property (nonatomic, strong) UIView *customView;



+ (instancetype)showHUDAddedTo:(UIView *)view animated:(BOOL)animated;


- (void)hideAnimated:(BOOL)animated afterDelay:(CGFloat)delay;


@end
